use specs::Entity;
use crate::validators::validator::Validator;

pub struct SelfValidator;

impl<'a> Validator<'a> for SelfValidator {
    type SystemData = ();

    fn validate(&mut self, _: &Self::SystemData, performer: Entity, target: Entity) -> bool {
        performer.id() == target.id()
    }
}